package practice09.Etc.ComplicateCondition;

import java.util.List;
import java.util.ArrayList;

import junit.framework.TestCase;

public class BizCheckTest extends TestCase {
	public void testIsTradableOnScheduledDay() throws Exception {
		BizCheck check = new BizCheck();
		List bankList = new ArrayList();
		bankList.add("국민은행");
		bankList.add("제주은행");
		bankList.add("시티은행");

		assertEquals(true, check.isTradable(bankList));
		
		bankList.add("신한은행");
		assertEquals(false, check.isTradable(bankList));
		
		bankList.remove("신한은행");
		assertEquals(true, check.isTradable(bankList));

		bankList.add("외환은행");
		assertEquals(false, check.isTradable(bankList));

	}
}
